home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / spaceambush.swf / scripts / frame_286 / PlaceObject2_402_60 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-03-12  |  5.1 KB  |  240 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root.j1))
  3.    {
  4.       if(_root.j1.att == true)
  5.       {
  6.          _root.j1.att = false;
  7.          _root.j1.gotoAndStop(2);
  8.          removeMovieClip(this);
  9.       }
  10.    }
  11.    if(this.hitTest(_root.j2))
  12.    {
  13.       if(_root.j2.att == true)
  14.       {
  15.          _root.j2.att = false;
  16.          _root.j2.gotoAndStop(2);
  17.          removeMovieClip(this);
  18.       }
  19.    }
  20.    if(this.hitTest(_root.j3))
  21.    {
  22.       if(_root.j3.att == true)
  23.       {
  24.          _root.j3.att = false;
  25.          _root.j3.gotoAndStop(2);
  26.          removeMovieClip(this);
  27.       }
  28.    }
  29.    if(this.hitTest(_root.j4))
  30.    {
  31.       if(_root.j4.att == true)
  32.       {
  33.          _root.j4.att = false;
  34.          _root.j4.gotoAndStop(2);
  35.          removeMovieClip(this);
  36.       }
  37.    }
  38.    if(this.hitTest(_root.j5))
  39.    {
  40.       if(_root.j5.att == true)
  41.       {
  42.          _root.j5.att = false;
  43.          _root.j5.gotoAndStop(2);
  44.          removeMovieClip(this);
  45.       }
  46.    }
  47.    if(this.hitTest(_root.tripple))
  48.    {
  49.       if(_root.tripple.att == true)
  50.       {
  51.          _root.tripple.gotoAndPlay(2);
  52.          _root.tripple.att = false;
  53.          removeMovieClip(this);
  54.       }
  55.    }
  56.    if(this.hitTest(_root.can))
  57.    {
  58.       if(_root.can.att == true)
  59.       {
  60.          _root.can.gotoAndPlay(2);
  61.          _root.can.att = false;
  62.          removeMovieClip(this);
  63.       }
  64.    }
  65.    if(this.hitTest(_root.health))
  66.    {
  67.       if(_root.health.att == true)
  68.       {
  69.          _root.health.gotoAndPlay(2);
  70.          _root.health.att = false;
  71.          removeMovieClip(this);
  72.       }
  73.    }
  74.    if(this.hitTest(_root.j6))
  75.    {
  76.       if(_root.j6.att == true)
  77.       {
  78.          _root.j6.att = false;
  79.          _root.j6.gotoAndStop(3);
  80.          removeMovieClip(this);
  81.       }
  82.    }
  83.    if(this.hitTest(_root.j6a))
  84.    {
  85.       if(_root.j6a.att == true)
  86.       {
  87.          _root.j6a.att = false;
  88.          _root.j6a.gotoAndStop(3);
  89.          removeMovieClip(this);
  90.       }
  91.    }
  92.    if(this.hitTest(_root.caman))
  93.    {
  94.       if(_root.caman.att == true)
  95.       {
  96.          _root.caman.att = false;
  97.          _root.caman.gotoAndStop(3);
  98.          removeMovieClip(this);
  99.       }
  100.    }
  101.    if(this.hitTest(_root.camana))
  102.    {
  103.       if(_root.camana.att == true)
  104.       {
  105.          _root.camana.att = false;
  106.          _root.camana.gotoAndStop(3);
  107.          removeMovieClip(this);
  108.       }
  109.    }
  110.    if(this.hitTest(_root.jet))
  111.    {
  112.       if(_root.jet.att == true)
  113.       {
  114.          _root.jet.att = false;
  115.          _root.jet.gotoAndStop(3);
  116.          removeMovieClip(this);
  117.       }
  118.    }
  119.    if(this.hitTest(_root.jeta))
  120.    {
  121.       if(_root.jeta.att == true)
  122.       {
  123.          _root.jeta.att = false;
  124.          _root.jeta.gotoAndStop(3);
  125.          removeMovieClip(this);
  126.       }
  127.    }
  128.    if(this.hitTest(_root.sjet))
  129.    {
  130.       if(_root.sjet.att == true)
  131.       {
  132.          _root.sjet.att = false;
  133.          _root.sjet.gotoAndStop(3);
  134.          removeMovieClip(this);
  135.       }
  136.    }
  137.    if(this.hitTest(_root.sjeta))
  138.    {
  139.       if(_root.sjeta.att == true)
  140.       {
  141.          _root.sjeta.att = false;
  142.          _root.sjeta.gotoAndStop(3);
  143.          removeMovieClip(this);
  144.       }
  145.    }
  146.    if(this.hitTest(_root.sjet1))
  147.    {
  148.       if(_root.sjet1.att == true)
  149.       {
  150.          _root.sjet1.att = false;
  151.          _root.sjet1.gotoAndStop(3);
  152.          removeMovieClip(this);
  153.       }
  154.    }
  155.    if(this.hitTest(_root.sjet1a))
  156.    {
  157.       if(_root.sjet1a.att == true)
  158.       {
  159.          _root.sjet1a.att = false;
  160.          _root.sjet1a.gotoAndStop(3);
  161.          removeMovieClip(this);
  162.       }
  163.    }
  164.    if(this.hitTest(_root.sjet2))
  165.    {
  166.       if(_root.sjet2.att == true)
  167.       {
  168.          _root.sjet2.att = false;
  169.          _root.sjet2.gotoAndStop(3);
  170.          removeMovieClip(this);
  171.       }
  172.    }
  173.    if(this.hitTest(_root.sjet2a))
  174.    {
  175.       if(_root.sjet2a.att == true)
  176.       {
  177.          _root.sjet2a.att = false;
  178.          _root.sjet2a.gotoAndStop(3);
  179.          removeMovieClip(this);
  180.       }
  181.    }
  182.    if(this.hitTest(_root.j7))
  183.    {
  184.       if(_root.j7.att == true)
  185.       {
  186.          _root.j7.att = false;
  187.          _root.j7.gotoAndStop(2);
  188.          removeMovieClip(this);
  189.       }
  190.    }
  191.    if(this.hitTest(_root.j8))
  192.    {
  193.       if(_root.j8.att == true)
  194.       {
  195.          _root.j8.att = false;
  196.          _root.j8.gotoAndStop(2);
  197.          removeMovieClip(this);
  198.       }
  199.    }
  200.    if(this.hitTest(_root.j9))
  201.    {
  202.       if(_root.j9.att == true)
  203.       {
  204.          _root.j9.att = false;
  205.          _root.j9.gotoAndStop(2);
  206.          removeMovieClip(this);
  207.       }
  208.    }
  209.    if(this.hitTest(_root.j10))
  210.    {
  211.       if(_root.j10.att == true)
  212.       {
  213.          _root.j10.att = false;
  214.          _root.j10.gotoAndStop(2);
  215.          removeMovieClip(this);
  216.       }
  217.    }
  218.    if(this._y < 70)
  219.    {
  220.       removeMovieClip(this);
  221.    }
  222.    if(585 < this._y)
  223.    {
  224.       removeMovieClip(this);
  225.    }
  226.    if(this._x < 15)
  227.    {
  228.       removeMovieClip(this);
  229.    }
  230.    if(565 < this._x)
  231.    {
  232.       removeMovieClip(this);
  233.    }
  234.    if(String(_name) != "shotd")
  235.    {
  236.       _X = _X + xmove;
  237.       _Y = _Y + ymove;
  238.    }
  239. }
  240.